home *** CD-ROM | disk | FTP | other *** search
/ Turnbull China Bikeride / Turnbull China Bikeride - Disc 1.iso / ARGONET / PD / PROGRAMMING / LCLINT-D.SPK / lclint / guide / fig6-out < prev    next >
Text File  |  1996-08-26  |  2KB  |  38 lines

  1. LCLint 2.2 --- 25 Aug 96
  2.  
  3. only.c: (in function f)
  4. <A HREF="only.c.html#line11" target="source">only.c:11,3</A>: Only storage glob not released before
  5.                 assignment: glob = y
  6.   A memory leak has been detected. Newly-allocated or
  7.   only-qualified storage is not released before the
  8.   last reference to it is lost. (-mustfree will
  9.   suppress message)
  10.    <A HREF="only.c.html#line1" target="source">only.c:1,24</A>: Storage glob becomes only
  11. <A HREF="only.c.html#line11" target="source">only.c:11,3</A>: Implicitly temp storage y assigned to
  12.                 only: glob = y
  13.   Temp storage (associated with a formal parameter) is
  14.   transferred to a non-temporary reference. The
  15.   storage may be released or new aliases created.
  16.   (-temptrans will suppress message)
  17. <A HREF="only.c.html#line13" target="source">only.c:13,4</A>: Dereference of possibly null pointer m:
  18.                 *m
  19.   A possibly null pointer is dereferenced.  Value is
  20.   either the result of a function which may return
  21.   null (in which case, code should check it is not
  22.   null), or a global, parameter or structure field
  23.   declared with the null qualifier. (-nullderef will
  24.   suppress message)
  25.    <A HREF="only.c.html#line8" target="source">only.c:8,12</A>: Storage m may become null
  26. <A HREF="only.c.html#line13" target="source">only.c:13,9</A>: Variable x used after being released
  27.   Memory is used after it has been released (either by
  28.   passing as an only param or assigning to and only
  29.   global. (-usereleased will suppress message)
  30.    <A HREF="only.c.html#line12" target="source">only.c:12,9</A>: Storage x released
  31. <A HREF="only.c.html#line14" target="source">only.c:14,10</A>: Implicitly temp storage z returned as
  32.                  only: z
  33. <A HREF="only.c.html#line14" target="source">only.c:14,12</A>: Fresh storage m not released before
  34.                  return
  35.    <A HREF="only.c.html#line9" target="source">only.c:9,27</A>: Fresh storage m allocated
  36.  
  37. Finished LCLint checking --- 6 code errors found
  38.